﻿@using PluginFramework.Packages
@using PluginFramework.Plugins
@{
    ViewBag.Title = "Packages";
}

<h2>Packages</h2>
 	<table>
		<thead>
			<tr>
				<th>
					Name
				</th>
				<th>
					Description
				</th>
				<th>
					Active
				</th>
			</tr>
		</thead>
		<tbody>
		@{
			var i = -1;
		}
			@foreach (PackageStatus pack in ViewBag.Packages)
			{
				i++;
				<tr>
					<td>@pack.Info.FriendlyName
					</td>
					<td>@pack.Info.Description
					</td>
					<td>
					@Html.Hidden("["+i+"].Id",pack.Info.Name)
					@Html.CheckBox("["+i+"].IsActive",pack.IsActive,new{disabled="disabled"})
					</td>
				</tr>
	}
		</tbody>
	</table>